package cn.ljy.uem.model;

import cn.ljy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Set;

/**
 * @description 学校教学班评论
 * @author 廖振豪
 * @date 2022-9-15
 */
@ApiModel(value="教学班评论")
@Data
@NoArgsConstructor
public class SchoolTeachingTaskComment extends BaseModel {
    @ApiModelProperty(value = "教学班评论id（uuid）")
    private String id;

    private String replyId;//回复帖子的Id,如果为空表示该帖子是主贴

    private  Integer taskId;//对应教学班表主键

    private Integer sort;//排序置顶

    private Long teacherId;//对应的教师表主键（与学生表主键在业务上为二选一）

    private Long studentId;//对应的学生表主键（与教师表主键在业务上为二选一）

    private String content;//评论内容

    private Date createTime;//发布时间

    //非数据库字段
    private SchoolTeacher schoolTeacher;

    private SchoolStudent schoolStudent;

    private SchoolTeachingTask schoolTeachingTask;
}
